<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<script type="text/javascript">
	$('#addTHgArdzABtn').linkbutton({   
	    iconCls: 'icon-add'  
	});  
	$('#delTHgArdzABtn').linkbutton({   
	    iconCls: 'icon-remove'  
	}); 
	$('#addTHgArdzABtn').bind('click', function(){   
 		 var tr =  $("#add_tHgArdzA_table_template tr").clone();
	 	 $("#add_tHgArdzA_table").append(tr);
	 	 resetTrNum('add_tHgArdzA_table');
	 	 return false;
    });  
	$('#delTHgArdzABtn').bind('click', function(){   
      	$("#add_tHgArdzA_table").find("input:checked").parent().parent().remove();   
        resetTrNum('add_tHgArdzA_table'); 
        return false;
    }); 
    $(document).ready(function(){
    	$(".datagrid-toolbar").parent().css("width","auto");
    	if(location.href.indexOf("load=detail")!=-1){
			$(":input").attr("disabled","true");
			$(".datagrid-toolbar").hide();
		}
    });
</script>
<div style="padding: 3px; height: 25px;width:auto;" class="datagrid-toolbar">
	<a id="addTHgArdzABtn" href="#">添加</a> <a id="delTHgArdzABtn" href="#">删除</a> 
</div>
<table border="0" cellpadding="2" cellspacing="0" id="tHgArdzA_table">
	<tr bgcolor="#E6E6E6">
		<td align="center" bgcolor="#EEEEEE" style="width: 25px;">序号</td>
		<td align="center" bgcolor="#EEEEEE" style="width: 25px;">操作</td>
				  <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
						日期
				  </td>
				  <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
						客户名称
				  </td>
				  <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
						件数
				  </td>
				  <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
						报关单号
				  </td>
				  <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
						仓库
				  </td>
				  <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
						提单号
				  </td>
				  <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
						续单费
				  </td>
				  <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
						海关费
				  </td>
				  <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
						查验费
				  </td>
				  <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
						其他费
				  </td>
				  <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
						总计
				  </td>
				  <td align="left" bgcolor="#EEEEEE" style="width: 126px;">
						备注
				  </td>
	</tr>
	<tbody id="add_tHgArdzA_table">
	<c:if test="${fn:length(tHgArdzAList)  <= 0 }">
			<tr>
				<td align="center"><div style="width: 25px;" name="xh">1</div></td>
				<td align="center"><input style="width:20px;"  type="checkbox" name="ck"/></td>
					<input name="tHgArdzAList[0].id" type="hidden"/>
					<input name="tHgArdzAList[0].createName" type="hidden"/>
					<input name="tHgArdzAList[0].createBy" type="hidden"/>
					<input name="tHgArdzAList[0].createDate" type="hidden"/>
					<input name="tHgArdzAList[0].updateName" type="hidden"/>
					<input name="tHgArdzAList[0].updateBy" type="hidden"/>
					<input name="tHgArdzAList[0].updateDate" type="hidden"/>
					<input name="tHgArdzAList[0].sysOrgCode" type="hidden"/>
					<input name="tHgArdzAList[0].sysCompanyCode" type="hidden"/>
					<input name="tHgArdzAList[0].bpmStatus" type="hidden"/>
					<input name="tHgArdzAList[0].dzid" type="hidden"/>
				  <td align="left">
					  	<input name="tHgArdzAList[0].rq" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" >
					  <label class="Validform_label" style="display: none;">日期</label>
					</td>
				  <td align="left">
					  	<input name="tHgArdzAList[0].cardname" maxlength="132" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" >
					  <label class="Validform_label" style="display: none;">客户名称</label>
					</td>
				  <td align="left">
					  	<input name="tHgArdzAList[0].js" maxlength="32" type="text" class="inputxt"  style="width:120px;"  datatype="n"  ignore="ignore" >
					  <label class="Validform_label" style="display: none;">件数</label>
					</td>
				  <td align="left">
					  	<input name="tHgArdzAList[0].bgdh" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" >
					  <label class="Validform_label" style="display: none;">报关单号</label>
					</td>
				  <td align="left">
					  	<input name="tHgArdzAList[0].whscode" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" >
					  <label class="Validform_label" style="display: none;">仓库</label>
					</td>
				  <td align="left">
					  	<input name="tHgArdzAList[0].tdh" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" >
					  <label class="Validform_label" style="display: none;">提单号</label>
					</td>
				  <td align="left">
					  	<input name="tHgArdzAList[0].xdfee" maxlength="32" type="text" class="inputxt"  style="width:120px;"  datatype="/^(-?\d+)(\.\d+)?$/"  ignore="ignore" >
					  <label class="Validform_label" style="display: none;">续单费</label>
					</td>
				  <td align="left">
					  	<input name="tHgArdzAList[0].hgfee" maxlength="32" type="text" class="inputxt"  style="width:120px;"  datatype="/^(-?\d+)(\.\d+)?$/"  ignore="ignore" >
					  <label class="Validform_label" style="display: none;">海关费</label>
					</td>
				  <td align="left">
					  	<input name="tHgArdzAList[0].cyfee" maxlength="32" type="text" class="inputxt"  style="width:120px;"  datatype="/^(-?\d+)(\.\d+)?$/"  ignore="ignore" >
					  <label class="Validform_label" style="display: none;">查验费</label>
					</td>
				  <td align="left">
					  	<input name="tHgArdzAList[0].qtfee" maxlength="32" type="text" class="inputxt"  style="width:120px;"  datatype="/^(-?\d+)(\.\d+)?$/"  ignore="ignore" >
					  <label class="Validform_label" style="display: none;">其他费</label>
					</td>
				  <td align="left">
					  	<input name="tHgArdzAList[0].total" maxlength="32" type="text" class="inputxt"  style="width:120px;"  datatype="/^(-?\d+)(\.\d+)?$/"  ignore="ignore" >
					  <label class="Validform_label" style="display: none;">总计</label>
					</td>
				  <td align="left">
					  	<input name="tHgArdzAList[0].comment" maxlength="132" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" >
					  <label class="Validform_label" style="display: none;">备注</label>
					</td>
   			</tr>
	</c:if>
	<c:if test="${fn:length(tHgArdzAList)  > 0 }">
		<c:forEach items="${tHgArdzAList}" var="poVal" varStatus="stuts">
			<tr>
				<td align="center"><div style="width: 25px;" name="xh">${stuts.index+1 }</div></td>
				<td align="center"><input style="width:20px;"  type="checkbox" name="ck" /></td>
						<input name="tHgArdzAList[${stuts.index }].id" type="hidden" value="${poVal.id }"/>
						<input name="tHgArdzAList[${stuts.index }].createName" type="hidden" value="${poVal.createName }"/>
						<input name="tHgArdzAList[${stuts.index }].createBy" type="hidden" value="${poVal.createBy }"/>
						<input name="tHgArdzAList[${stuts.index }].createDate" type="hidden" value="${poVal.createDate }"/>
						<input name="tHgArdzAList[${stuts.index }].updateName" type="hidden" value="${poVal.updateName }"/>
						<input name="tHgArdzAList[${stuts.index }].updateBy" type="hidden" value="${poVal.updateBy }"/>
						<input name="tHgArdzAList[${stuts.index }].updateDate" type="hidden" value="${poVal.updateDate }"/>
						<input name="tHgArdzAList[${stuts.index }].sysOrgCode" type="hidden" value="${poVal.sysOrgCode }"/>
						<input name="tHgArdzAList[${stuts.index }].sysCompanyCode" type="hidden" value="${poVal.sysCompanyCode }"/>
						<input name="tHgArdzAList[${stuts.index }].bpmStatus" type="hidden" value="${poVal.bpmStatus }"/>
						<input name="tHgArdzAList[${stuts.index }].dzid" type="hidden" value="${poVal.dzid }"/>
				   <td align="left">
					  	<input name="tHgArdzAList[${stuts.index }].rq" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore"  value="${poVal.rq }"/>
					  <label class="Validform_label" style="display: none;">日期</label>
				   </td>
				   <td align="left">
					  	<input name="tHgArdzAList[${stuts.index }].cardname" maxlength="132" type="text" class="inputxt"  style="width:120px;"  ignore="ignore"  value="${poVal.cardname }"/>
					  <label class="Validform_label" style="display: none;">客户名称</label>
				   </td>
				   <td align="left">
					  	<input name="tHgArdzAList[${stuts.index }].js" maxlength="32" type="text" class="inputxt"  style="width:120px;"  datatype="n"  ignore="ignore"  value="${poVal.js }"/>
					  <label class="Validform_label" style="display: none;">件数</label>
				   </td>
				   <td align="left">
					  	<input name="tHgArdzAList[${stuts.index }].bgdh" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore"  value="${poVal.bgdh }"/>
					  <label class="Validform_label" style="display: none;">报关单号</label>
				   </td>
				   <td align="left">
					  	<input name="tHgArdzAList[${stuts.index }].whscode" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore"  value="${poVal.whscode }"/>
					  <label class="Validform_label" style="display: none;">仓库</label>
				   </td>
				   <td align="left">
					  	<input name="tHgArdzAList[${stuts.index }].tdh" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore"  value="${poVal.tdh }"/>
					  <label class="Validform_label" style="display: none;">提单号</label>
				   </td>
				   <td align="left">
					  	<input name="tHgArdzAList[${stuts.index }].xdfee" maxlength="32" type="text" class="inputxt"  style="width:120px;"  datatype="/^(-?\d+)(\.\d+)?$/"  ignore="ignore"  value="${poVal.xdfee }"/>
					  <label class="Validform_label" style="display: none;">续单费</label>
				   </td>
				   <td align="left">
					  	<input name="tHgArdzAList[${stuts.index }].hgfee" maxlength="32" type="text" class="inputxt"  style="width:120px;"  datatype="/^(-?\d+)(\.\d+)?$/"  ignore="ignore"  value="${poVal.hgfee }"/>
					  <label class="Validform_label" style="display: none;">海关费</label>
				   </td>
				   <td align="left">
					  	<input name="tHgArdzAList[${stuts.index }].cyfee" maxlength="32" type="text" class="inputxt"  style="width:120px;"  datatype="/^(-?\d+)(\.\d+)?$/"  ignore="ignore"  value="${poVal.cyfee }"/>
					  <label class="Validform_label" style="display: none;">查验费</label>
				   </td>
				   <td align="left">
					  	<input name="tHgArdzAList[${stuts.index }].qtfee" maxlength="32" type="text" class="inputxt"  style="width:120px;"  datatype="/^(-?\d+)(\.\d+)?$/"  ignore="ignore"  value="${poVal.qtfee }"/>
					  <label class="Validform_label" style="display: none;">其他费</label>
				   </td>
				   <td align="left">
					  	<input name="tHgArdzAList[${stuts.index }].total" maxlength="32" type="text" class="inputxt"  style="width:120px;"  datatype="/^(-?\d+)(\.\d+)?$/"  ignore="ignore"  value="${poVal.total }"/>
					  <label class="Validform_label" style="display: none;">总计</label>
				   </td>
				   <td align="left">
					  	<input name="tHgArdzAList[${stuts.index }].comment" maxlength="132" type="text" class="inputxt"  style="width:120px;"  ignore="ignore"  value="${poVal.comment }"/>
					  <label class="Validform_label" style="display: none;">备注</label>
				   </td>
   			</tr>
		</c:forEach>
	</c:if>	
	</tbody>
</table>
